export default defineAppConfig({
  pages: [
    'pages/index/index',
    'pages/login/index',
    'pages/pickUp/index',
    'pages/pickUp/forwarding',
    'pages/pickUp/success',
    'pages/pickUp/handlePickUp',
    'pages/pickUp/handleCallSome',
    'pages/index/mine',
  ],
  subpackages: [
    {
      root: 'pages/myPay/',
      pages: [
        'index',
      ]
    },
    {
      root: 'pages/myNotification/',
      pages: [
        'index',
      ]
    },
    {
      root: 'pages/orderTracking/',
      pages: [
        'index',
        'map',
        'h5map',
      ]
    },
    {
      root: 'pages/serviceQuery/',
      pages: [
        'index',
        'coupon/index',
        'outletQuery/index',
        'priceTimeliness/index',
      ]
    },
    {
      root: 'pages/myOrder/',
      pages: [
        'index',
        'order',
        'detail',
        'waybillTracking',
        'sign',
        'signSuccess',
      ]
    },
    {
      root: 'pages/invoicing/',
      pages: [
        'index',
        "apply",
        "ordinaryInvoice",
        "specialInvoice",
        "myTitle",
        "addOrdinary",
        "addSpecial",
        "myInvoice",
        "detail",
        "success",
      ]
    },
    {
      root: 'pages/addressBook/',
      pages: [
        'index',
        //'editAddress',
        'addressMap'
      ]
    },
    // {
    //   root: 'pages/pickUp/',
    //   pages: [
    //       //'index',
    //     'forwarding',
    //     'success',
    //   ]
    // },
    {
      root: 'pages/sendGoods/',
      pages: [
        'success',
        'contraband',
        'bankList',
        'goods',
        'moreServer',
        'moreServerAgent',
        'index',
        'goodsName',
        'goodsType',
        'packing',
      ]
    },
    {
      root: 'pages/changeOrder/',
      pages: [
        'success',
        'index',
        'changeItem'
      ]
    },
    {
      root: 'pages/codeList/',
      pages: [
        'codeList'
      ]
    },
    {
      root: 'pages/pay/',
      pages: [
        'paySuccess',
        'index',
        'web',
      ]
    },
    {
      root: 'pages/myBankAccount/',
      pages: [
        'index',
        'editAccount',
        'bank',
      ]
    },
    {
      root: 'pages/sign/',
      pages: [
        'sign',
        'confirm',
        'bill',
      ]
    },
    {
      root: 'pages/receiveAgent',
      pages: [
        'index',
        'code',
      ]
    },


    //工作人员端合并来的东西
    {
      root: 'pages3/index',
      pages: [
        'index',
        'personalData',
      ]
    },
    {
      root: 'pages3/details',
      pages: [
        'index',
      ]
    },
    {
      root: 'pages3/handWrite',
      pages: [
        'index',
      ]
    },
    {
      root: 'pages3/search',
      pages: [
        'index',
      ]
    },
    {
      root: "pages3/checkInfo/",
      pages: ["index"],
    },
    {
      root: "pages3/login/",
      pages: ["index"],
    },
    {
      root: "pages3/detailMap/",
      pages: ["index"],
    },
    {
      root: "pages3/pay/",
      pages: ["index"],
    },
    {
      root: "pages3/audit/",
      pages: ["audit", "goods"],
    },
    {
      root: "pages2/reviewToday/",
      pages: ["index"],
    },
    {
      root: "pages2/reviewPage/",
      pages: ["index"],
    },
    {
      root: "pages2/signToday/",
      pages: ["index"],
    },
    {
      root: "pages2/signPage/",
      pages: ["index", "handWrite"],
    },
    {
      root: "pages2/waybillPage/",
      pages: [
        "index",
        "confirmInfo",
        "reviewInfo",
        "signInfo",
        "payInfo",
        "pay",
        "payFinish",
        "transInfo",
        "finishInfo",
      ],
    },
    {
      root: "pages2/mapDetail/",
      pages: ["index"],
    },
    {
      root: "pages2/sendRecord/",
      pages: ["index"],
    },
    {
      root: "pages2/pickRecord/",
      pages: ["index"],
    },
    {
      root: "pages2/canvasImage/",
      pages: ["index"],
    },
    {
      root: "pages2/pay/",
      pages: ["index", "info"],
    },
    {
      root: "pages2/priceTimeliness/",
      pages: ["index"],
    },
    {
      root: "pages2/branchInquiry/",
      pages: ["index"],
    },
    {
      root: "pages2/waitToday/",
      pages: ["index"],
    },
    {
      root: "pages2/confirmPage/",
      pages: ["index","bankPage"],
    },
    {
      root: "pages2/sendSure/",
      pages: ["index"],
    },
    {
      root: "pages2/audit/",
      pages: ["goods"],
    },
    {
      root: "pages2/goodsPage/",
      pages: ["index", "goodsName","goodsType","goodsPack"], //货物信息页
    },
    {
      root: "pages2/contrabandPage/",
      pages: ["index"], //禁运品查询页
    },
    {
      root: "pages2/test/",
      pages: ["api", "nut", "form"],
    },
  ],
  requiredPrivateInfos: [
    // "getLocation",
    // "onLocationChange",
    // "startLocationUpdateBackground",
    //"chooseAddress",
    "chooseLocation"
  ],
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'black',
    backgroundColor: '#f5f5f5'
  },
  permission: {
    'scope.userLocation': {
      desc: '获取你的地理位置信息',
    },
  },
  plugins: {
    WechatSI: {
      version: "0.3.5",
      provider: "wx069ba97219f66d99"
    },
  },
  lazyCodeLoading: 'requiredComponents',
  tabBar: {
    // custom: true,
    color: '#000000',
    selectedColor: '#1989fa',
    backgroundColor: '#ffffff',
    list: [
      {
        pagePath: 'pages/index/index',
        selectedIconPath: './assets/images/index/首页(选中).png',
        iconPath: './assets/images/index/首页.png',
        text: '首页'
      },
      {
        pagePath: 'pages/pickUp/index',
        selectedIconPath: './assets/images/index/取货(选中).png',
        iconPath: './assets/images/index/取货.png',
        text: '取货'
      },
      {
        pagePath: 'pages/index/mine',
        selectedIconPath: './assets/images/index/我的(选中).png',
        iconPath: './assets/images/index/我的.png',
        text: '我的'
      }
    ]
  }
})
